<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_id" data-rule="required" data-source="store/index" class="form-control selectpage" name="row[store_id]" type="text" value="{$row.store_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Original_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-original_price" data-rule="required" class="form-control" step="0.01" name="row[original_price]" type="number" value="{$row.original_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Detail')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-detail" data-rule="required" class="form-control " rows="5" name="row[detail]" cols="50">{$row.detail|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cat_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cat_id" data-rule="required" min="0" data-source="cat/index" class="form-control selectpage" name="row[cat_id]" type="text" value="{$row.cat_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-status" data-rule="required" class="form-control" name="row[status]" type="number" value="{$row.status|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Addtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-addtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[addtime]" type="text" value="{:$row.addtime?datetime($row.addtime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_delete')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-is_delete" data-rule="required" class="form-control" name="row[is_delete]" type="number" value="{$row.is_delete|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Attr')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-attr" data-rule="required" class="form-control " rows="5" name="row[attr]" cols="50">{$row.attr|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service" data-rule="required" class="form-control" name="row[service]" type="text" value="{$row.service|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" data-rule="required" class="form-control" name="row[sort]" type="number" value="{$row.sort|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Virtual_sales')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-virtual_sales" data-rule="required" class="form-control" name="row[virtual_sales]" type="number" value="{$row.virtual_sales|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cover_pic')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-cover_pic" class="form-control " rows="5" name="row[cover_pic]" cols="50">{$row.cover_pic|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Video_url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-video_url" class="form-control" name="row[video_url]" type="text" value="{$row.video_url|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Unit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-unit" data-rule="required" class="form-control" name="row[unit]" type="text" value="{$row.unit|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Individual_share')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-individual_share" data-rule="required" class="form-control" name="row[individual_share]" type="number" value="{$row.individual_share|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Share_commission_first')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-share_commission_first" data-rule="required" min="0" class="form-control" step="0.01" name="row[share_commission_first]" type="number" value="{$row.share_commission_first|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Share_commission_second')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-share_commission_second" data-rule="required" min="0" class="form-control" step="0.01" name="row[share_commission_second]" type="number" value="{$row.share_commission_second|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Share_commission_third')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-share_commission_third" data-rule="required" min="0" class="form-control" step="0.01" name="row[share_commission_third]" type="number" value="{$row.share_commission_third|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weight" min="0" class="form-control" step="0.01" name="row[weight]" type="number" value="{$row.weight|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Freight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-freight" data-rule="required" min="0" class="form-control" name="row[freight]" type="number" value="{$row.freight|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Full_cut')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-full_cut" class="form-control " rows="5" name="row[full_cut]" cols="50">{$row.full_cut|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Integral')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-integral" class="form-control " rows="5" name="row[integral]" cols="50">{$row.integral|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use_attr')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-use_attr" data-rule="required" class="form-control" name="row[use_attr]" type="number" value="{$row.use_attr|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Share_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-share_type" class="form-control" name="row[share_type]" type="number" value="{$row.share_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Quick_purchase')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-quick_purchase" class="form-control" name="row[quick_purchase]" type="number" value="{$row.quick_purchase|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hot_cakes')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hot_cakes" class="form-control" name="row[hot_cakes]" type="number" value="{$row.hot_cakes|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cost_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cost_price" class="form-control" step="0.01" name="row[cost_price]" type="number" value="{$row.cost_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Member_discount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-member_discount" data-rule="required" class="form-control" name="row[member_discount]" type="number" value="{$row.member_discount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rebate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rebate" class="form-control" step="0.01" name="row[rebate]" type="number" value="{$row.rebate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mch_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mch_id" data-rule="required" data-source="mch/index" class="form-control selectpage" name="row[mch_id]" type="text" value="{$row.mch_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_num" data-rule="required" class="form-control" name="row[goods_num]" type="number" value="{$row.goods_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mch_sort')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mch_sort" data-rule="required" class="form-control" name="row[mch_sort]" type="number" value="{$row.mch_sort|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Confine_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-confine_count" data-rule="required" class="form-control" name="row[confine_count]" type="number" value="{$row.confine_count|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_level')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-is_level" data-rule="required" class="form-control" name="row[is_level]" type="number" value="{$row.is_level|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-type" data-rule="required" class="form-control" name="row[type]" type="number" value="{$row.type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_negotiable')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-is_negotiable" data-rule="required" class="form-control" name="row[is_negotiable]" type="number" value="{$row.is_negotiable|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Attr_setting_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-attr_setting_type" data-rule="required" class="form-control" name="row[attr_setting_type]" type="number" value="{$row.attr_setting_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Views')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-views" data-rule="required" class="form-control" name="row[views]" type="number" value="{$row.views|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shop_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-shop_id" class="form-control " rows="5" name="row[shop_id]" cols="50">{$row.shop_id|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Verify_card_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-verify_card_id" class="form-control " rows="5" name="row[verify_card_id]" cols="50">{$row.verify_card_id|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Supplier_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-supplier_price" class="form-control" step="0.01" name="row[supplier_price]" type="number" value="{$row.supplier_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Supplier_goods_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-supplier_goods_id" data-rule="required" data-source="supplier/goods/index" class="form-control selectpage" name="row[supplier_goods_id]" type="text" value="{$row.supplier_goods_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Supplier_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-supplier_id" data-rule="required" data-source="supplier/index" class="form-control selectpage" name="row[supplier_id]" type="text" value="{$row.supplier_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_share_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_share_title" class="form-control" name="row[goods_share_title]" type="text" value="{$row.goods_share_title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_share_logo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_share_logo" class="form-control" name="row[goods_share_logo]" type="text" value="{$row.goods_share_logo|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_share_desc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_share_desc" class="form-control" name="row[goods_share_desc]" type="text" value="{$row.goods_share_desc|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_examine')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-is_examine" data-rule="required" class="form-control" name="row[is_examine]" type="number" value="{$row.is_examine|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dabao_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dabao_price" class="form-control" step="0.01" name="row[dabao_price]" type="number" value="{$row.dabao_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Brand_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-brand_id" data-rule="required" data-source="brand/index" class="form-control selectpage" name="row[brand_id]" type="text" value="{$row.brand_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Key_word')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-key_word" class="form-control" name="row[key_word]" type="text" value="{$row.key_word|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_recommend')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-is_recommend" class="form-control" name="row[is_recommend]" type="number" value="{$row.is_recommend|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Kind')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-kind" class="form-control selectpicker" name="row[kind]">
                {foreach name="kindList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.kind"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_supervalue')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-is_supervalue" class="form-control" name="row[is_supervalue]" type="number" value="{$row.is_supervalue|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_hotsale')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-is_hotsale" class="form-control" name="row[is_hotsale]" type="number" value="{$row.is_hotsale|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_school')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_school" class="form-control selectpicker" name="row[is_school]">
                {foreach name="isSchoolList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.is_school"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('School_admin_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-school_admin_id" data-rule="required" data-source="school/admin/index" class="form-control selectpage" name="row[school_admin_id]" type="text" value="{$row.school_admin_id|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
